import type { PageParams } from '@/types/grobal'
import type { HotResult } from '@/types/hot'
import { request } from '@/utils/request'
interface HotParams extends PageParams {
  subType: string
}
/**
 * 通用热门热门推荐类型
 * @params url 请求地址
 * @params data 请求参数
 */
export const getHotRecommendAPI = (url: string, data?: HotParams) => {
  return request<HotResult>({
    method: 'GET',
    url: url,
    data,
  })
}
